package com.cqjtu.store.user.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @ProjectName: cqjtu-store
 * @Titile: UserLoginDTO
 * @Author: Lucky
 * @Description: 封装用户登录信息
 */
@Data
@ApiModel(value = "用户登录信息")
public class UserLoginDTO {
    @ApiModelProperty(value = "用户名", name = "username", example = "lucky" ,required = true)
    @NotBlank(message = "用户名不能为空")
    private String username;
    @ApiModelProperty(value = "密码", name = "password", example = "123456" ,required = true)
    @NotBlank(message = "密码不能为空")
    private String password;
}
